import service from '@/utils/request'

const FactoryApi = {
  addFactory: function (data) {
    return service.post('factory', data)
  },
  getFactory: function (data) {
    return service.get('factory', {params:data})
  },
  deleteFactory: function (data) {
    return service.put('factory/delete', data)
  },
  editFactory: function (data) {
    return service.put('factory', data)
  },
  listFactory: function (data) {
    return service.get('factory/page', {params: data})
  },
  listIdName:function(data){
    return service.get('factory/listIdName', {params: data})
  }
}
export default FactoryApi